package uitest 
{
	import flash.display.BitmapData;
	import flash.display.Sprite;
	import iscript.uiFramework.components.button.ImageButton;
	import iscript.uiFramework.UIFramework;
	
	
	public class ButtonImageTest extends Sprite 
	{
		
		public function ButtonImageTest() 
		{
			var normal:BitmapData = UIFramework.resource.getButtonBitmapData("GameLite.UIComponent.DefaultTheme.CloseButton.Normal");
			var down:BitmapData = UIFramework.resource.getButtonBitmapData("GameLite.UIComponent.DefaultTheme.CloseButton.Down");
			var  closeButton:ImageButton = new ImageButton(normal, down, down);
		    	 closeButton.render(this);
			     closeButton.ClickHandler = function():void{trace("Image button test")}
		}
		
	}

}